package day03;
//if结构演示
public class IfDemo {
    public static void main(String[] args) {
        //满500打8折:
        double price = 600.0;//消费金额
        if(price>=500){     //500
            price *= 0.8;   //打8折
        }
        System.out.println(price);

        //判断成绩是否合法
        int score =900;
        if(score>=0 && score<=100){
            System.out.println("成绩合法");
        }
            System.out.println("成绩不合法,继续执行");

    }
}
